Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core.manager): 修复插件解压so的错误逻辑 #740

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

shifujun
Copy link
Collaborator

根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix #724
fix #729

根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix Tencent#724
fix Tencent#729
@shifujun shifujun merged commit 307800c into Tencent:master Jan 4, 2022
@shifujun shifujun deleted the fixGetAbi branch January 4, 2022 03:22
@shifujun
Copy link
Collaborator Author

shifujun commented Jan 4, 2022

fix 97b1d84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant